﻿
#ifndef TEXTEDIT_H
#define TEXTEDIT_H

//{{{ file documentation -------------------------------------------------------

/*!
 * @file     textedit.h
 * @brief    dicodor text edition widget class declaration
 */

//}}} --------------------------------------------------------------------------
//{{{ includes / predeclarations -----------------------------------------------

// @(#) $Id: textedit.h 53 2012-05-23 13:56:41Z nsouchon-dico@altern.org $

#include <QtCore/QStringList>

#include <QtGui/QTextEdit>
#include <QtGui/QMenu>
#include <QtGui/QContextMenuEvent>

//}}} --------------------------------------------------------------------------
//{{{ structures ---------------------------------------------------------------
//}}} --------------------------------------------------------------------------
//{{{ .TextEdit ----------------------------------------------------------------

class TextEdit :    public QTextEdit
{
    Q_OBJECT;

public:
    explicit        TextEdit (QWidget * parent = 0);
    virtual         ~TextEdit ();

    void            contextMenuEvent (QContextMenuEvent * event);

private:
    void            createCharMenu ();

signals:

public slots:

private:
    QMenu         * m_charMenu;
    QWidget       * m_charWidget;
};

//}}} --------------------------------------------------------------------------

#endif // TEXTEDIT_H

